#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define endl '\n'
void solve()
{
    int n = 0;
    while (~scanf("%d", &n))
    {
        int i, j;
        for (i = 0; i <= n; i++)
        {
            for (j = i; j < n; j++)
            {
                cout << "  ";
            }
            for (j = i + 1; j > 0; j--)
            {
                cout << '*';
            }
            cout << endl;
        }
        for (i -= 2; i >= 0; i--)
        {
            for (j = i; j < n; j++)
            {
                cout << "  ";
            }
            for (j = i + 1; j > 0; j--)
            {
                cout << '*';
            }
            cout << endl;
        }
    }
}
int main()
{
    solve();
    return 0;
}
